home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / termsorc.lha / Extras / Source / gtlayout-source.lha / LTP_AddGadgets.c < prev    next >
C/C++ Source or Header  |  1995-09-24  |  706b  |  30 lines

  1. /*  GadTools layout toolkit
  2. **
  3. **  Copyright © 1993-1995 by Olaf `Olsen' Barthel
  4. **  Freely distributable.
  5. */
  6.  
  7. #include "gtlayout_global.h"
  8.  
  9. VOID __regargs
  10. LTP_AddGadgets(LayoutHandle *handle)
  11. {
  12.     if(handle)
  13.     {
  14. #ifdef DO_BOOPSI_KIND
  15.         if(handle -> BOOPSIList)
  16.         {
  17.             AddGList(handle -> Window,(struct Gadget *)handle -> BOOPSIList,(UWORD)-1,(UWORD)-1,NULL);
  18.             RefreshGList((struct Gadget *)handle -> BOOPSIList,handle -> Window,NULL,(UWORD)-1);
  19.         }
  20. #endif    /* DO_BOOPSI_KIND */
  21.  
  22.         AddGList(handle -> Window,handle -> List,(UWORD)-1,(UWORD)-1,NULL);
  23.         RefreshGList(handle -> List,handle -> Window,NULL,(UWORD)-1);
  24.  
  25.         GT_RefreshWindow(handle -> Window,NULL);
  26.  
  27.         LTP_DrawGroup(handle,handle -> TopGroup);
  28.     }
  29. }
  30.